<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  created() {
    let parser = new UAParser();
    let dev = parser.getDevice()
    console.log(dev)
    if (dev.type == 'mobile') {
      window.location.replace('http://m.renren.tuanteam.com/')
    }
  }
}
</script>

<style lang="scss">
  #app {
    width: 1903px;
    margin: 0 auto;
    padding-top: 100px;
  }
</style>
